class FirstFooter extends HTMLElement {
    constructor() {
        super();
        // 创建 Shadow DOM
        this.attachShadow({ mode: 'open' });
    }

    // 在组件挂载后执行
    connectedCallback() {
        this.render();
    }

    // 渲染组件内容
    render() {
        this.shadowRoot.innerHTML = `
      <style>
            
            footer {
                margin-top: 25px;
                margin-bottom: 0;
                background-color: #333;
                color: white;
                padding: 2px;
                text-align: center;
                font-size: 10px;
                font-family: Arial, sans-serif;
            }
            footer p {
                
            }
        </style>
        <footer>
            <p>Powered By sdstudio.cn</p>
            <p>本站所有资源来源网络,如有侵犯您的版权,请联系我,谢谢合作 !</p>
        </footer>
    `;
    }
}



customElements.define('first-footer',FirstFooter );